/*
 * main.h
 *
 *  Created on: Dec 25, 2009
 *      Author: jkeller
 */

#ifndef MAIN_H_
#define MAIN_H_

#include <stdio.h>

typedef enum
{
    cmd_nothing = 0,
    cmd_version,
    cmd_help,
    cmd_query_default,
    cmd_query_all,
    cmd_query_list,
    cmd_query_info,
    cmd_query_all_scripts,
    cmd_query_pre_script,
    cmd_query_post_script,
    cmd_query_preun_script,
    cmd_query_postun_script,
    cmd_query_format,
    cmd_query_tags,
    cmd_erase,
    cmd_install,
    cmd_upgrade,
    cmd_verify_all,
    cmd_verify
} command;

int
parseCommandLine( int             argc,
                  char **         argv,
                  command *       todo,
                  int *           verbose,
                  const char * ** fileNames,
                  int *           numfilenames,
                  char **         queryFormat,
                  char **         root,
                  FILE *          outFd,
                  FILE*           errorFd );

#endif /* MAIN_H_ */
